﻿using AutoMapper;
using FutureApp.Person.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FutureApp.Person
{
    internal class Mapper : Profile
    {
        public Mapper()
        {
            this.CreateMap<Choose, ChooseDto>()
                .ForMember(dest => dest.CourseName, opt => opt.MapFrom(src => src.Course_C.Name));
        }
    }
}
